//
//  MakingMoneyViewController.m
//  werfgh
//
//  Created by 李晓勇 on 14-9-24.
//  Copyright (c) 2014年 dingshenwangluokeji. All rights reserved.
//

#import "MakingMoneyViewController.h"
#import "Header.h"
@interface MakingMoneyViewController ()

@end

@implementation MakingMoneyViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.title=@"赚话费";
    
   self.view.backgroundColor=[UIColor colorWithRed:246.0/255 green:247.0/255 blue:248.0/255 alpha:1] ;
    UIImageView*imagV=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"qrcode.png"]];
    [self.view addSubview:imagV];
    if (DeviceHeight==568) {
        
    imagV.frame=CGRectMake(90, 100, 140, 140);
    
    UILabel*label=[[UILabel alloc]initWithFrame:CGRectMake(0, 60, 320, DeviceHeight-150)];
    label.backgroundColor=[UIColor clearColor];
    label.font=[UIFont systemFontOfSize:17];
    label.text=@"扫描二维码即可下载乐乎节费软件客户端";
        label.textAlignment=1;
    [self.view addSubview:label];
    }
    else
    {
        imagV.frame=CGRectMake(90, 70, 140, 140);
        
        UILabel*label=[[UILabel alloc]initWithFrame:CGRectMake(0, 65, 320, DeviceHeight-150)];
        label.backgroundColor=[UIColor clearColor];
        label.font=[UIFont systemFontOfSize:17];
        label.text=@"扫描二维码即可下载乐乎节费软件客户端";
        label.textAlignment=1;
        [self.view addSubview:label];
    }
    [self addBack];
    // Do any additional setup after loading the view.
}
-(void)addBack
{
    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    backBtn.frame = CGRectMake(0, 0, 28, 28);
    
    [backBtn setImage:[UIImage imageNamed:@"back.png"] forState:UIControlStateNormal];
    [backBtn addTarget:self action:@selector(doBack:) forControlEvents:UIControlEventTouchUpInside];
    
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithCustomView:backBtn];
    self.navigationItem.leftBarButtonItem = backItem;
    
    // Do any additional setup after loading the view.
    
}
-(void)doBack:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
